﻿using System.Collections.Generic;

namespace Minesweeper.Logic
{
    public class BombFinder
    {
        public static List<Position> GetBombList(string[] stringBombArray)
        {
            
            var posy = 0;

            var bombs = new List<Position>();

            foreach (string line in stringBombArray)
            {
                var posx = 0;
                foreach (char field in line)
                {
                    if (field.Equals('*'))
                    {
                        bombs.Add(new Position(posx, posy));
                    }
                    posx++;
                }
                posy++;
            }
            return bombs;
        }
    }
}